from django.urls import path
from . import views


app_name = 'comet'
urlpatterns = [
    path('product/allProducts/', views.ToAllProducts().to_all_products, name='allProducts'),
    path('product/typeProducts/', views.ToTypeProducts().to_type_products, name='typeProducts'),
    path('product/searchProducts/', views.ToSearchProducts().to_search_products, name='searchProducts'),
    path('product/detailProduct/', views.ToDetailProduct().to_detail_product, name='detailProduct'),
    path('product/buyNow/', views.do_buy_now, name='buyNow'),
    path('product/addToCart/', views.do_add_to_cart, name='addToCart'),
    path('product/toCart/', views.ToCart().to_cart, name='toCart'),
    path('product/removeCartProducts/', views.do_remove_cart_product, name='removeCartProducts'),
    path('product/buyCart/', views.do_buy_cart, name='buyCart'),
    path('product/addToFavorite/', views.do_add_to_favorate, name='addToFavorite'),
    path('product/removeFavoriteProducts/', views.do_remove_favorite_product, name='removeCartProducts'),
    
]